<template>
  <div class="box pa-20">
    <div class="cash-title">预计7个工作日内到账</div>
      <div class="cash-content">
          <span>提现金额</span>
          <div class="cash-num">
              <span>￥</span>
              <input class="cash-input" type="text" :value="cashNum">
          </div>
          <p>可提现金额:{{total}}元,<em @click="doAllCash()">全部提现</em></p>
          <button>提现</button>
      </div>
  </div>
</template>

<script>
export default {
    name:'Cash',
    data(){
        return{
            cashNum:'200.00',
            total:'300.00'
        }
    },
    methods:{
        doAllCash(){
            this.cashNum=this.total
        }
    }
}
</script>

<style lang="scss" scoped>
@import "@/assets/css/public";
.box{
    background-color: $gray_bg;
}
.cash-title{
    line-height: vw(120);
    border-radius: vw(10) vw(10) 0 0;
    background: rgba(0,0,0,.1);
    font-size: vw(32);
    text-align: center;
}
.cash-content{
    padding:vw(50) vw(20);
    background: #fff;
    box-sizing: border-box;
    >span{
        padding-top:vw(50);
        font-size: vw(28);
    }
    .cash-num{
        height: vw(140);
        line-height: vw(140);
        margin-bottom:vw(30);
        border-bottom: 1px solid $gray_bg;
        font-size: vw(56);
        font-weight: bold;
        .cash-input{
            display: inline-block;
            width:vw(610);
            font-size: vw(68);
            background-color: transparent;
        }
    }
    >p{
        font-size: vw(28);
        em{
            margin-left:vw(10);
            color:$green;
            font-style: normal;
        }
    }
    >button{
        width: 100%;
        height: vw(80);
        border-radius: vw(40);
        background: $orgGradientBg;
        font-size: vw(32);
        font-weight: bold;
        color: #fff;
        margin-top:vw(68); 
    }
}
</style>